package com.medium.house.controller;

import com.medium.house.biz.HouseInfoBiz;
import com.medium.house.biz.HouseQueryConditionBiz;
import com.medium.house.entity.HouseInfo;
import com.medium.house.request.HouseInfoRequestDto;
import com.medium.house.vo.ResultVO;
import com.medium.house.vo.ResultVOUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author : wang.yu
 * @Description :
 * @Date: Created in 2018/2/7 0007  20:41
 * @Modified By
 */
@Api(value = "/house",description="首页",tags={"首页"})
@RestController
@RequestMapping("/api/house/")
@Slf4j
@SuppressWarnings("all")
public class HouseRoomController {
    @Autowired
    private HouseQueryConditionBiz houseQueryConditionBiz;
    @Autowired
    private HouseInfoBiz houseInfoBiz;

    @ApiOperation("首页")
    @PostMapping("index")
    public ResultVO index(){
        return ResultVOUtil.success(houseInfoBiz.index());
    }
}
